package com.jwds.digital.bios.business.core.infrastructure.entity.basic;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.jwds.tdc.framework.database.lib.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @Description BasiccDict
 * @Author xiao  xun
 * @Date 2024-12-07
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("basic_dict")
public class BasicDict extends BaseEntity<Long> {
    /**
     * 字典项编码
     */
    @TableField("item_code")
    private String itemCode;
     /**
     * 字典项名称
     */
    @TableField("item_name")
    private String itemName;
     /**
     * 字典项值
     */
    @TableField("item_value")
    private String itemValue;
     /**
     * 字典项父级编码
     */
    @TableField("parent_code")
    private String parentCode;
     /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;
     /**
     * 备注
     */
    @TableField("remark")
    private String remark;

    @TableField( exist = false)
    private List<BasicDict> children;
}
